<script language="javascript" type="text/javascript">
<!--
function update_avatar(newimage)
{
	document.avatar_img.src = newimage;
}
//-->
</script>
<form method=post enctype="multipart/form-data">
<input type=hidden name=op value=update>
<input type=hidden name=alias_id value="{ALIAS_ID}">
<tr><td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td></tr>
</table>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr><th height="25" colspan=6 class="thHead" nowrap="nowrap">{HEADER_NAME}</th></tr>
<!-- BEGIN aliases -->
	<tr><td class="row1">Alias Name</td><td class="row2">{aliases.USER_ALIAS}</td></tr>
        <tr>
                <td class="row1" colspan="2"><table width="70%" cellspacing="2" cellpadding="0" border="0" align="center">
                        <tr>
                                <td width="65%"><span class="gensmall">{L_AVATAR_EXPLAIN}</span></td>
                                <td align="center"><span class="gensmall">{L_CURRENT_IMAGE}</span><br />{aliases.AVATAR}<br /><input type="checkbox" name="avatardel" />&nbsp;<span class="gensmall">{L_DELETE_AVATAR}</span></td>
                        </tr>
                </table></td>
        </tr>
	<tr>
                <td class="row1"><span class="gen">Current Avatars:</span></td>
                <td class="row2">
			<select name="avatar_gallery" onchange="update_avatar(this.options[selectedIndex].value);">
			<option value="">none</a>
			<!-- BEGIN avatars -->
				<option value="{aliases.avatars.USER_AVATAR}">{aliases.avatars.USER_AVATAR}</option>
			<!-- END avatars -->
			</select> <img name=avatar_img src="{aliases.USER_AVATAR}">
		</td>
        </tr>
        <!-- BEGIN switch_avatar_local_upload -->
        <tr>
                <td class="row1"><span class="gen">{L_UPLOAD_AVATAR_FILE}:</span></td>
                <td class="row2"><input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_SIZE}" /><input type="file" name="avatar" class="post" style="width:200px" /></td>
        </tr>
        <!-- END switch_avatar_local_upload -->
        <!-- BEGIN switch_avatar_remote_upload -->
        <tr>
                <td class="row1"><span class="gen">{L_UPLOAD_AVATAR_URL}:</span><br /><span class="gensmall">{L_UPLOAD_AVATAR_URL_EXPLAIN}</span></td>
                <td class="row2"><input type="text" name="avatarurl" size="40" class="post" style="width:200px" /></td>
        </tr>
        <!-- END switch_avatar_remote_upload -->
        <!-- BEGIN switch_avatar_remote_link -->
        <tr>
                <td class="row1"><span class="gen">{L_LINK_REMOTE_AVATAR}:</span><br /><span class="gensmall">{L_LINK_REMOTE_AVATAR_EXPLAIN}</span></td>
                <td class="row2"><input type="text" name="avatarremoteurl" size="40" class="post" style="width:200px" /></td>
        </tr>
        <!-- END switch_avatar_remote_link -->
<!-- END aliases -->
<tr><td class="row1" colspan=2 align=center><input type=submit></td></tr>
</table>
</form>
